﻿CREATE PROCEDURE [admin].[sec_CheckStateEditAccess] 
	@User1 sysname = NULL,
	@User2 sysname = NULL,
	@User3 sysname = NULL,
	@User4 sysname = NULL,
	@User5 sysname = NULL
AS
IF NOT dbo.USerName() IN ('Dimon','alexey','help','SMALLBIG')--,@User1,@User2,@User3,@User4,@User5)
BEGIN 
	ROLLBACK TRAN
	DECLARE @U sysname SET @U = dbo.UserName()
	RAISERROR('User %s is not qualified to change rules',16,1,@U)
	RETURN
END








